package com.logisticsrepair.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 申报材料
 *
 * @TableName apply_material
 */
@TableName(value = "apply_material")
@Data
public class ApplyMaterialEntity implements Serializable {
    /**
     * 申报单号
     */
    @TableId(value = "apply_id", type = IdType.ASSIGN_ID)
    private String applyId;

    /**
     * 订单编号
     */
    @TableField(value = "order_id")
    private String orderId;

    /**
     * 材料编号
     */
    @TableField(value = "material_id")
    private String materialId;

    /**
     * 材料价格
     */
    @TableField(value = "material_price")
    private Double materialPrice;

    /**
     * 取量
     */
    @TableField(value = "take_amount")
    private Integer takeAmount;

    /**
     * 申请时间
     */
    @TableField(value = "apply_time")
    private Date applyTime;

    /**
     * 申请状态（1完成，0未完成）
     */
    @TableField(value = "apply_status")
    private Boolean applyStatus;

    /**
     * 开启收费（1开启，0关闭）
     */
    @TableField(value = "charge_on")
    private Boolean chargeOn;

    /**
     * 收费状态（1收费完成，0未收费）
     */
    @TableField(value = "charge_status")
    private Boolean chargeStatus;

    /**
     * 缴费时间
     */
    @TableField(value = "charge_time")
    private Date chargeTime;

    /**
     * 材料库
     */
    @TableField(exist = false)
    private MaterialLibraryEntity materialLibraryEntity;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}